package com.mt.api.constants.threadlocal;

/**
 * @Author: plover
 * @Date: 2020/07/06/4:31 下午
 * @Description:
 */
public class TokenThreadLocal {

    private static ThreadLocal<String> localToken = new ThreadLocal<>();

    public static void add(String token) {
        localToken.set(token);
    }

    public static String get() {
        return localToken.get();
    }

    public static void remove() {
        localToken.remove();
    }
}
